﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace fKanban.Model
{
    public class SprintEntity : EntityBase
    {
        public SprintEntity() {
            this.StartDate =
                this.EndDate = new DateTime(1900, 1, 1);
            
        }
        public SprintEntity(int id) {
            this.Id = id;
            this.StartDate =
                this.EndDate = new DateTime(1900, 1, 1);
        }
        public int Id { get; set; }
        public int UserStoryId { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public int Duration { get; set; }
        public int DatePassed { get; set; }
        public int DateLeft { get; set; }
        public string Progress { get; set; }
        public int ProgressValue { get; set; }
        public int ProgressLength { get; set; }

        public string StartDateDescription { get { return this.StartDate.ToString("yyyy-MM-dd"); } }
        public DateTime StartDate { get; set; }
        public string EndDateDescription { get { return this.EndDate.ToString("yyyy-MM-dd"); } }
        public DateTime EndDate { get; set; }
        public string ProductManager { get; set; }
        public string ScrumMaster { get; set; }
        public string TestManager { get; set; }

        public int Status { get; set; }
    }
}